Repository navigation
Preserve completed rounds after a match backup rollback - #545
Merged
pnxenopoulos merged 1 commit intoNov 22, 2026
Merged
pnxenopoulos merged 1 commit into
pnxenopoulos merged 1 commit into
Conversation
Owner
|
This looks good to me. Before I release 3.3.1, I'm going to take this demo and add it to awpy-fixtures, and add one more targeted test. Thanks for this fix! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #544.
When a server restores a round backup,
m_totalRoundsPlayedcan decrease mid-match.RoundTrackercleared its entire history on any decrease. It now keeps rounds through the restored count and discards later attempts. A full restart at zero still clears every round. Resetting the freeze state also lets the tracker capture the replay’s start when the restore happens during freeze time.Verification
I compared
Demo.roundswithdemoparser20.42.1 on the Nuke recording from RED Canids vs. 9z. Demo archivedemoparser2returned 26 raw round-end events, including the superseded round 16 and the rollback event with no winner. All 24 scored rounds matched the patched output on end tick and winning side. The replayed round 16 ended at tick 187154 with 9z winning, and the final score was 13–11 for RED.cargo test --locked -p awpy --libpassed locally (159 passed, 5 ignored), including the new partial-rollback and full-restart regression test.cargo fmt --all --checkpassed.